import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';


import { homeComponent } from './home/home.component';
import { listComponent } from './home/list/list.component';
import { canvaslistComponent } from './canvaslist/canvaslist.component';
import { canvasComponent } from './canvas/canvas.component';
import { otherComponent } from './other/other.component';
import { LoginGuard } from './my-guard/login.guard';
export const routes: Routes = [
  //首页
  {
    path: 'home', component: homeComponent, data: { menu: 'home' },
    children: [
      { path: 'list', component: listComponent, data: { menu: 'home', submenu: 'list' }}
    ]
  },
  {path: 'canvas/start/:CanvasGroupGuid', component: canvasComponent,data: { menu: 'home' }},
  {path: 'other', component: otherComponent,data: { menu: 'other' }},
  {path: 'canvaslist/:FK_TrainningGuid', component: canvaslistComponent, data: { menu: 'home' }},
  { path: '', redirectTo: 'home/list', pathMatch: 'full' }
  ]
@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule],
  providers: [

  ]
})
export class AppRoutingModule { }